package Utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.core.convert.converter.Converter;

public class DateToString implements Converter<Date, String> {

	public String convert(Date source) {
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd");

		String date = simpleDateFormat.format(source);
		
		return date;

	}

}
